package com.axjc.gqzr.mapper;

import com.axjc.gqzr.domain.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 大道至简
 * @description 针对表【sys_user(用户表)】的数据库操作Mapper
 * @createDate 2024-09-16 16:18:16
 * @Entity com.axjc.gqzr.domain.SysUser
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    @Select("select * from sys_user where username=#{email}  limit 1")
    SysUser findByEmail(String email);

    @Select("select * from sys_user where username=#{username} limit 1")
    SysUser findByUserName(String username);
}




